import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { NgZorroIopModule } from 'ng-zorro-iop';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import {RmMainComponent} from './rm-main.component';
import {HttpInterceptorService} from '@trident/shared';
import {RmService} from './rm.service';
import {ApmOptComponent} from './opt/rm-opt.component';
import {RmAddComponent} from './add/rm-add.component';
import {RmListComponent} from './list/rm-list.component';



const routes: Routes = [
  {
    path: '', component: RmMainComponent
  }
];

@NgModule({
  imports: [
    FormsModule,
    ReactiveFormsModule,
    CommonModule,
    RouterModule,
    RouterModule.forChild(routes),
    NgZorroAntdModule,
    NgZorroIopModule
  ],
    declarations: [
      RmMainComponent,
      ApmOptComponent,
      RmListComponent,
      RmAddComponent,
    ],
    entryComponents: [],
    providers: [ RmService, { provide: HTTP_INTERCEPTORS, useClass: HttpInterceptorService, multi: true }  ]
})
export class  RmModule { }
